package com.love.rongcommon.base.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.love.rongcommon.base.converter.Convert;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseModel implements Convert, Serializable {

    @TableField(value = "id", fill = FieldFill.INSERT)
    private Long id;

    @TableField(value = "enable", fill = FieldFill.INSERT_UPDATE)
    private Boolean enable;

    @TableField(value = "status", fill = FieldFill.INSERT_UPDATE)
    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
